home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir39 / ctask11.zip / INSTALL_ < prev    next >
Text File  |  1994-10-23  |  11KB  |  473 lines

  1. ;$VER: CronTask Install 1.0 (Sep 25 1994) 
  2. ;Copyright ⌐ 1994 JoJoSoft Development. All rights reserved.
  3.  
  4. ;=============================================================================
  5. ; English strings
  6. ;=============================================================================
  7.  
  8. (if (= @language "english")
  9. (
  10.     (set #default_language 1)
  11.  
  12.     (set #install-msg
  13.         (cat "\n\nInstalling CronTask in your system.\n\n"
  14.              "CronTask ⌐ 1994 JoJoSoft Development.\n"
  15.              "All rights reserved." ))
  16.  
  17.     (set #AreYouSureUnInstall "\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nAre you sure you want to uninstall CronTask.")
  18.     (set #UnInstallFinished "\\n\\n\\n\\nCronTask uninstall is finished. CronTask has sadly \\nenough been removed from your system.")
  19.     (set #ChooseDir    "\nChoose destination directory\nfor ")
  20.     (set #GetUnPathText (cat #ChooseDir "the uninstallation script\n"))
  21.     (set #CopyCronTaskText (cat #ChooseDir "CronTask\n"))
  22.     (set #CopyCronPrefsText (cat #ChooseDir "CronPrefs\n"))
  23.     (set #CopyCronLibText "\nCopying 'cronserver.library' to LIBS:.\n")
  24.     (set #IconEnhPrompt "\n\n\n\n\n\n\n\nWhich icon set do you want to install?")
  25.     (set #IconEnhGadgets1 "Standard (4 colors)")
  26.     (set #IconEnhGadgets2 "Enhanced (8 colors)")
  27.     (set #DocPathPrompt (cat #ChooseDir "the documention\n"))
  28.     (set #RegFormPrompt "\n\n\n\n\n\n\n\nCronTask installation gives you the opportunity to print the registration form.")
  29.     (set #RegFormChoices1 "Do not print registerform")
  30.     (set #RegFormChoices2 "Print registerform")
  31.  
  32.     (set #wrong-kick (cat "This program is a heavy user of OS 2.x. Buy it, you wont regret it! For starters you could use the best Cron ever." ))
  33.  
  34.     (set #which-language (cat "\nWhich languages should be installed?" ))
  35.     (set #which-language-help
  36.         (cat "\nOne of the best features of Workbench 2.1 was\n"
  37.              "the abilty to work in different languages.\n"
  38.              "CronTask uses this feature. If your language\n"
  39.              "is avilable then select it and make the most\n"
  40.              "out of CronTask\n\n"
  41.               @askoptions-help ))
  42.  
  43.     (set #which-document (cat "\nWhich documentations should be installed?" ))
  44.     (set #which-document-help
  45.         (cat "HjΣlp!!!"
  46.                 @askoptions-help ))
  47.  
  48.     (set #Ending (cat "\n\nWe congratulate you to your fine choice of Cron. Make\n"
  49.                              "sure to read the manual carefully so you don't\n"
  50.                              "missout on any of the great features of CronTask.\n\n\n"
  51.                              "An unistall script has been created: "))
  52.  
  53. ))
  54.  
  55. ;=============================================================================
  56. ; Svenska strΣngar
  57. ;=============================================================================
  58.  
  59. (if (= @language "svenska")
  60. (
  61.     (set #default_language 2)
  62.  
  63.     (set #install-msg
  64.         (cat "\n\nInstallerar CronTask i ditt system.\n\n"
  65.              "CronTask ⌐ 1994 JoJoSoft Development.\n"
  66.              "Alla rΣttigheter reserverade."
  67.     ))
  68.  
  69.     (set #AreYouSureUnInstall "\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n─r du sΣker pσ att du vill avinstallera CronTask?")
  70.     (set #UnInstallFinished "\\n\\n\\n\\nCronTask avinstallation Σr klar. CronTask har\\nsorgligt nog blivit borttaget frσn ditt system.")
  71.     (set #ChooseDir    "\nVΣlj en katalog f÷r\n ")
  72.     (set #GetUnPathText (cat #ChooseDir "avinstallations scriptet\n"))
  73.     (set #CopyCronTaskText (cat #ChooseDir "CronTask\n"))
  74.     (set #CopyCronPrefsText (cat #ChooseDir "CronPrefs\n"))
  75.     (set #CopyCronLibText "\nKopierar 'cronserver.library' till LIBS:.\n")
  76.     (set #IconEnhPrompt "\n\n\n\n\n\n\n\nVilken ikon uppsΣttning vill du installera?")
  77.     (set #IconEnhGadgets1 "Standard (4 fΣrgers).")
  78.     (set #IconEnhGadgets2 "F÷rfinat (8 fΣrgers).")
  79.     (set #DocPathPrompt (cat #ChooseDir "dokumenten\n"))
  80.     (set #RegFormPrompt "\n\n\n\n\n\n\n\nCronTask installerare ger dig m÷jligheten att skriva ut registrerings formlΣret.")
  81.     (set #RegFormChoices1 "Skriv inte ut registrerings formulΣret.")
  82.     (set #RegFormChoices2 "Skriv ut registrerings formulΣret.")
  83.  
  84.     (set #wrong-kick (cat "Detta program Σr en tung anvΣndare av OS 2.x. K÷p det, du kommer inte σngra dig! Till att b÷rja med kan du dσ anvΣnda den bΣsta Cron nσgonsin." ))
  85.  
  86.     (set #which-language (cat "\nVilka sprσk ska bli installerade?" ))
  87.     (set #which-language-help
  88.         (cat "\nEn av dom bΣsta finesserna i Workbench 2.1 var\n"
  89.              "m÷jligheten att arbeta i olika sprσk.\n"
  90.                  "CronTask anvΣnder denna finess. Om ditt sprσk finns\n"
  91.                  "tillgΣngligt, vΣlj det och g÷r det mesta av CronTask.\n"
  92.               @askoptions-help ))
  93.  
  94.     (set #which-document (cat "\nVilka dokument ska bli installerade?" ))
  95.     (set #which-document-help
  96.         (cat "HjΣlp!!!"
  97.                 @askoptions-help ))
  98.  
  99.     (set #Ending (cat "\n\nVi gratulerar till ditt fina val av Cron. Se till\n"
  100.                              "att lΣsa manualen noggrant sσ du inte missar nσgra av\n"
  101.                              "CronTask's alla finesser.\n\n\n"
  102.                              "Ett avinstallations script har skapats: "))
  103. ))
  104.  
  105. ;--------------------------
  106. ; Script's real beginning.
  107. ;--------------------------
  108.  
  109. (if (< (/ (getversion) 65536) 37)
  110. (
  111.     (abort #wrong-kick)
  112. ))
  113.  
  114. (user 2)
  115. (welcome (message #install-msg))
  116.  
  117. (complete 0)
  118.  
  119. (set DefUn-Path
  120.     (askdir
  121.         (prompt #GetUnPathText)
  122.         (help @askdir-help)
  123.         (default "RAM:")
  124.     )
  125.  
  126. (copyfiles
  127.     (newname "Un-Install CronTask.info")
  128.     (source "English.info")
  129.     (dest DefUn-Path)
  130. )
  131.  
  132. (tooltype
  133.     (dest (cat DefUn-Path "Un-Install CronTask"))
  134.     (settooltype "SCRIPT" "Un-Install CronTask")
  135.     (settooltype "MINUSER" "EXPERT")
  136.     (noposition)
  137. )
  138.  
  139. (working #install-msg)
  140.  
  141. (run (cat "echo >\"" DefUn-Path "Un-Install CronTask\""))
  142. (set Un-Path (cat "echo >>\"" DefUn-Path "Un-Install CronTask\""))
  143.  
  144. (run Un-Path "\";$VER: CronTask Un-Install 1.0 (Sep 25 1994)\"")
  145. (run Un-Path "\";Copyright ⌐ 1994 JoJoSoft Development. All rights reserved\"")
  146. (run Un-Path "\"(complete 0)\"")
  147. (run (cat Un-Path "\"(user 2)\""))
  148. (run (cat Un-Path "\"(welcome (message '" #AreYouSureUnInstall "'))\""))
  149. (run (cat Un-Path "\"(delete '" DefUn-Path "Un-Install CronTask')\""))
  150. (run (cat Un-Path "\"(delete '" DefUn-Path "Un-Install CronTask.info')\""))
  151. (run (cat Un-Path "\"(run 'delete ENV:Cron all')\""))
  152. (run (cat Un-Path "\"(run 'delete ENVARC:Cron all')\""))
  153. (run Un-Path "\"(complete 10)\"")
  154.  
  155. ;--------------------------------------------------
  156. ; Copying CronTask, Cronprefs & cronserver.library.
  157. ;--------------------------------------------------
  158.  
  159. (set CronTask-Path
  160.     (askdir
  161.         (prompt #CopyCronTaskText)
  162.         (help @askdir-help)
  163.         (default "SYS:WBStartup/")
  164.     )
  165. )
  166.  
  167. (copyfiles
  168.     (source "/CronTask")
  169.     (dest CronTask-Path)
  170.     (infos)
  171. )
  172.  
  173. (complete 8)
  174.  
  175. (working #install-msg)
  176.  
  177. (run (cat Un-Path "\"(run '" CronTask-Path "CronTask q')\""))
  178. (run Un-Path "\"(complete 20)\"")
  179. (run (cat Un-Path "\"(delete '" CronTask-Path "CronTask.info')\""))
  180. (run (cat Un-Path "\"(delete '" CronTask-Path "CronTask')\""))
  181. (run Un-Path "\"(complete 30)\"")
  182.  
  183. (complete 16)
  184.  
  185. (set CronPrefs-Path
  186.     (askdir
  187.         (prompt #CopyCronPrefsText)
  188.         (help @askdir-help)
  189.         (default "SYS:Prefs/")
  190.     )
  191.  
  192. (copyfiles
  193.     (source "/CronPrefs")
  194.     (dest CronPrefs-Path)
  195.     (infos)
  196. )
  197.  
  198. (complete 24)
  199.  
  200. (working #install-msg)
  201.  
  202. (run (cat Un-Path "\"(delete '" CronPrefs-Path "CronPrefs')\""))
  203. (run Un-Path "\"(complete 40)\"")
  204. (run (cat Un-Path "\"(delete '" CronPrefs-Path "CronPrefs.info')\""))
  205. (run Un-Path "\"(complete 50)\"")
  206.  
  207. (complete 32)
  208.  
  209. (copylib
  210.     (prompt #CopyCronLibText)
  211.     (help @copylib-help)
  212.     (source "/Libs/cronserver.library")
  213.     (dest "LIBS:")
  214.     (confirm)
  215. )
  216.  
  217. (working #install-msg)
  218.  
  219. (run (cat Un-Path "\"(delete 'Libs:cronserver.library')\""))
  220. (run Un-Path "\"(complete 60)\"")
  221.  
  222. (complete 40)
  223.  
  224. ;-----------------
  225. ; Copying icon's.
  226. ;-----------------
  227.  
  228. (set #Enhanced
  229.     (askchoice
  230.         (prompt #IconEnhPrompt)
  231.         (default 0)
  232.         (choices #IconEnhGadgets1 #IconEnhGadgets2)
  233.         (help "HjΣlp!!!")
  234.     )
  235. )
  236.  
  237. (complete 56)
  238.  
  239. (if #Enhanced
  240. (
  241.     (copyfiles
  242.         (source "/Icons/CronTask.info")
  243.         (dest CronTask-Path)
  244.     )
  245.  
  246.     (copyfiles
  247.         (source "/Icons/CronPrefs.info")
  248.         (dest CronPrefs-Path)
  249.     )
  250. ))
  251.  
  252. (complete 64)
  253.  
  254. (tooltype
  255.     (dest (cat CronTask-Path "CronTask"))
  256.     (settooltype "DONOTWAIT" "")
  257.     (noposition)
  258. )
  259.  
  260. (tooltype
  261.     (dest (cat CronPrefs-Path "CronPrefs"))
  262.     (noposition)
  263. )
  264.  
  265. (complete 69)
  266.  
  267. ;-----------------------
  268. ; Copying documentation.
  269. ;-----------------------
  270.  
  271. (set documentation
  272.     (askoptions
  273.         (prompt #which-document)
  274.         (help #which-document-help)
  275.         (choices
  276.             "English"
  277.             "Svenska")
  278.             (default #default_language)
  279.         )
  280. )
  281.  
  282. (complete 72)
  283.  
  284. (set count 0)
  285. (set #askdocpath 1)
  286.  
  287. (while (set doc (select count
  288.                                 "english"
  289.                                 "svenska"
  290.                                 ""))
  291. (
  292.     (if (IN documentation count)
  293.     (
  294.         (if #askdocpath
  295.         (
  296.             (set #askdocpath 0)
  297.             
  298.             (set Doc-Path
  299.                 (askdir
  300.                     (prompt #DocPathPrompt)
  301.                     (help @askdir-help)
  302.                     (default CronPrefs-Path)
  303.                 )
  304.             ) 
  305.         ))
  306.  
  307.         (if (= count 0)
  308.         (
  309.             (copyfiles
  310.                 (source "/Docs/CronTask.guide.eng")
  311.                 (dest Doc-Path)
  312.                 (infos)
  313.             )
  314.  
  315.             (copyfiles
  316.                 (source "/Docs/Register_form.eng")
  317.                 (dest Doc-Path)
  318.             )
  319.  
  320.             (if #Enhanced
  321.             (
  322.                 (copyfiles
  323.                     (newname "CronTask.guide.eng.info")
  324.                     (source "/Icons/Doc.info")
  325.                     (dest Doc-Path)
  326.                 )
  327.             ))
  328.  
  329.             (tooltype
  330.                 (dest (cat Doc-Path "CronTask.guide.eng"))
  331.                 (noposition)
  332.             )
  333.  
  334.             (working #install-msg)
  335.  
  336.             (run (cat Un-Path "\"(delete '" Doc-Path "CronTask.guide.eng')\""))
  337.             (run (cat Un-Path "\"(delete '" Doc-Path "CronTask.guide.eng.info')\""))
  338.             (run (cat Un-Path "\"(delete '" Doc-Path "Register_form.eng')\""))
  339.         ))
  340.  
  341.         (if (= count 1)
  342.         (
  343.             (copyfiles
  344.                 (source "/Docs/CronTask.guide.sve")
  345.                 (dest Doc-Path)
  346.                 (infos)
  347.             )
  348.  
  349.             (copyfiles
  350.                 (source "/Docs/Register_form.sve")
  351.                 (dest Doc-Path)
  352.             )
  353.  
  354.             (if #Enhanced
  355.             (
  356.                 (copyfiles
  357.                     (newname "CronTask.guide.sve.info")
  358.                     (source "/Icons/Doc.info")
  359.                     (dest Doc-Path)
  360.                 )
  361.             ))
  362.  
  363.             (tooltype
  364.                 (dest (cat Doc-Path "CronTask.guide.sve"))
  365.                 (noposition)
  366.             )
  367.  
  368.             (working #install-msg)
  369.  
  370.             (run (cat Un-Path "\"(delete '" Doc-Path "CronTask.guide.sve')\""))
  371.             (run (cat Un-Path "\"(delete '" Doc-Path "CronTask.guide.sve.info')\""))
  372.             (run (cat Un-Path "\"(delete '" Doc-Path "Register_form.sve')\""))
  373.         ))
  374.     ))
  375.  
  376.     (set count (+ count 1))
  377. ))
  378.  
  379. (working #install-msg)
  380.  
  381. (run Un-Path "\"(complete 90)\"")
  382.  
  383. (complete 80)
  384.  
  385. ;-----------------------
  386. ; Copying locale.
  387. ;-----------------------
  388.  
  389. (if (exists "Sys:Locale" (noreq))
  390. (
  391.     (if (exists "LOCALE:" (noreq))
  392.     (
  393.         (set language
  394.             (askoptions
  395.                 (prompt #which-language)
  396.                 (help #which-language-help)
  397.                 (choices
  398.                     "English"
  399.                     "Svenska")
  400.                     (default #default_language)
  401.                 )
  402.         )
  403.  
  404.         (set count 0)
  405.         (while (set lang (select count
  406.                                         "english"
  407.                                         "svenska"
  408.                                         ""))
  409.         (
  410.             (if (IN language count)
  411.             (
  412.                 (if (<> count 0)
  413.                 (
  414.                     (makedir (cat "LOCALE:Catalogs/" lang))
  415.  
  416.                     (copyfiles
  417.                         (source (cat "/Catalogs/" lang))
  418.                         (dest (cat "LOCALE:Catalogs/" lang))
  419.                         (all)
  420.                     )
  421.  
  422.                     (run (cat Un-Path "\"(delete 'Locale:Catalogs/" lang "/cronprefs.catalog')\""))
  423.  
  424.                 ))
  425.             ))
  426.  
  427.             (set count (+ count 1))
  428.         ))
  429.     ))
  430. ))
  431.  
  432. (complete 88)
  433.  
  434. ;----------------------
  435. ; Typing registerform.
  436. ;----------------------
  437.  
  438. (set #Regform
  439.     (askchoice
  440.         (prompt #RegFormPrompt)
  441.         (default 0)
  442.         (choices #RegFormChoices1 #RegFormChoices2)
  443.         (help "HjΣlp!!!")
  444. ))
  445.  
  446. (complete 96)
  447.  
  448. (if #Regform
  449. (
  450.     (if (= @language "english")
  451.     (
  452.         (run "type >prt: /Docs/Register_form.eng")
  453.     ))
  454.  
  455.     (if (= @language "svenska")
  456.     (
  457.         (run "type >prt: /Docs/Register_form.eng")
  458.     ))
  459. ))
  460.  
  461. (user 3)
  462.  
  463. (run Un-Path "\"(complete 100)\"")
  464. (run Un-Path "\"(message '" #UnInstallFinished "')\"")
  465. (run Un-Path "\"(exit (quiet))\"")
  466.  
  467. (complete 100)
  468.  
  469. (message (cat #Ending (substr Un-Path 7)))
  470.  
  471. (exit (quiet))